package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupDemandOrderMapper;
import com.ruoyi.yipaiju.domain.GroupDemandOrder;
import com.ruoyi.yipaiju.service.IGroupDemandOrderService;

/**
 * fo_group_demand_orderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupDemandOrderServiceImpl implements IGroupDemandOrderService 
{
    @Autowired
    private GroupDemandOrderMapper groupDemandOrderMapper;

    /**
     * 查询fo_group_demand_order
     * 
     * @param id fo_group_demand_order主键
     * @return fo_group_demand_order
     */
    @Override
    public GroupDemandOrder selectGroupDemandOrderById(Long id)
    {
        return groupDemandOrderMapper.selectGroupDemandOrderById(id);
    }

    /**
     * 查询fo_group_demand_order列表
     * 
     * @param groupDemandOrder fo_group_demand_order
     * @return fo_group_demand_order
     */
    @Override
    public List<GroupDemandOrder> selectGroupDemandOrderList(GroupDemandOrder groupDemandOrder)
    {
        return groupDemandOrderMapper.selectGroupDemandOrderList(groupDemandOrder);
    }

    /**
     * 根据业务主键查询一条记录：fo_group_demand_order
     *
     * @param groupDemandOrder fo_group_demand_order
     * @return fo_group_demand_order
     */
    @Override
    public GroupDemandOrder selectOneGroupDemandOrder(GroupDemandOrder groupDemandOrder)
    {
        return groupDemandOrderMapper.selectOneGroupDemandOrder(groupDemandOrder);
    }

    /**
     * 新增fo_group_demand_order
     * 
     * @param groupDemandOrder fo_group_demand_order
     * @return 结果
     */
    @Override
    public int insertGroupDemandOrder(GroupDemandOrder groupDemandOrder)
    {
        return groupDemandOrderMapper.insertGroupDemandOrder(groupDemandOrder);
    }

    /**
     * 修改fo_group_demand_order
     * 
     * @param groupDemandOrder fo_group_demand_order
     * @return 结果
     */
    @Override
    public int updateGroupDemandOrder(GroupDemandOrder groupDemandOrder)
    {
        return groupDemandOrderMapper.updateGroupDemandOrder(groupDemandOrder);
    }

    @Override
    public int updateGroupDemandOrderCondition(GroupDemandOrder groupDemandOrder, GroupDemandOrder groupDemandOrderCondition)
    {
        return groupDemandOrderMapper.updateGroupDemandOrderCondition(groupDemandOrder, groupDemandOrderCondition);
    }

    /**
     * 批量删除fo_group_demand_order
     * 
     * @param ids 需要删除的fo_group_demand_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupDemandOrderByIds(Long[] ids)
    {
        return groupDemandOrderMapper.deleteGroupDemandOrderByIds(ids);
    }

    /**
     * 删除fo_group_demand_order信息
     * 
     * @param id fo_group_demand_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupDemandOrderById(Long id)
    {
        return groupDemandOrderMapper.deleteGroupDemandOrderById(id);
    }

    /**
     * 条件删除fo_group_demand_order
     *
     * @param groupDemandOrder fo_group_demand_order
     * @return 结果
     */
    @Override
    public int deleteGroupDemandOrderByCondition(GroupDemandOrder groupDemandOrder)
    {
        return groupDemandOrderMapper.deleteGroupDemandOrderByCondition(groupDemandOrder);
    }

}
